// function x will go to global scope and can be called from any part of code
function x(str) {
	$('#<?php echo $_REQUEST["id"]; ?>').html("Hello from dynamically loaded function. Param:" + str);
}